package vivace.view;
import javax.swing.*;

/**
 * TimeSignatureLabel contains the information of where the labels in the timeline is
 *
 */
public class TimeSignatureLabel extends JLabel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4713459009011241166L;
	/** Position of the time signature label */
	private int position;	
	
	/**
	 * Constructor for TimeSignatureLabel
	 * @param string	what text should be displayed in the label
	 * @param position	where is the labels position
	 */
	public TimeSignatureLabel(String string, int position){
		
		setText(string);
		this.position = position;
		
	}
		
	/**
	 * Returns the position of the time signature label
	 * @return
	 */
	public int getPosition(){
		
		return position;
		
	}
	
	/**
	 * Sets the positon of the time signature label
	 * @return
	 */
	public void setPosition(int position){
		
		this.position = position;
		
	}

}
